package com.clear.honghefinance.biz.modules.account.converter;

import com.clear.honghefinance.biz.modules.account.domain.dto.AddAccountBookDTO;
import com.clear.honghefinance.biz.modules.account.domain.dto.UpdateAccountBookDTO;
import com.clear.honghefinance.biz.modules.account.domain.entity.AccountBook;
import com.clear.honghefinance.biz.modules.account.domain.vo.GetAccountBookDetailVO;
import com.clear.honghefinance.biz.modules.account.domain.vo.ListAccountBookVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AccountBookConverter {

    AccountBookConverter INSTANCE = Mappers.getMapper(AccountBookConverter.class);

    AccountBook convertDTOToAccountBookEntity(AddAccountBookDTO dto);

    AccountBook convertDTOToAccountBookEntity(UpdateAccountBookDTO dto);

    List<ListAccountBookVO> convertAccountBookEntityToListAccountBookVO(List<AccountBook> accountBooks);

    GetAccountBookDetailVO convertAccountBookEntityToGetAccountBookDetailVO(AccountBook accountBook);
}
